﻿using System.Collections.Generic;
using Easy.Common;
using System.Linq;

namespace Easy.Domain.Core
{
    public interface IQueryProvider<T> where T : class
    {
        IQueryable<T> GetPaged(int pageIndex = 0, int pageCount = 25, string where = "", string orderBy = "");

        IQueryable<T> GetAll(string where = "", string orderBy = "");

        IQueryable<T> ExecuteProQuery(string procedureName, Dictionary<string, object> parameters = null);
    }
}
